package com.example.demo.common.util;

import java.util.*;

public class RemoveSave {
    public static List<Map<String,Object>> distinctBySetOrder(List<Map<String,Object>> list){
        Set<Map<String,Object>> set = new HashSet<Map<String,Object>>();
        List<Map<String,Object>> newList = new ArrayList<Map<String,Object>>();
        for (Map<String,Object> t :list) {
            if(set.add(t)){
                newList.add(t);
            }
        }
        return newList;
    }
}
